package com.mars.component.scheduler.exception;

import com.mars.base.common.exception.AppException;


public class SchedulerJobException extends AppException {

	private static final long serialVersionUID = 1L;

	/**
	 * 创建定时任务失败
	 */
	public static final SchedulerJobException CREATE_SCHEDULER_FAILED = new SchedulerJobException("创建定时任务失败");
	
	/**
	 * 执行定时任务失败
	 */
	public static final SchedulerJobException RUN_SCHEDULER_FAILED = new SchedulerJobException("执行定时任务失败");
	
	/**
	 * 立即执行定时任务失败
	 */
	public static final SchedulerJobException RUN_NOW = new SchedulerJobException("立即执行定时任务失败");
	
	/**
	 * 删除定时任务失败
	 */
	public static final SchedulerJobException DELETE_JOB_EXCEPTION = new SchedulerJobException("删除定时任务失败");
	
	/**
	 * 立即执行定时任务失败
	 */
	public static final SchedulerJobException RESUME_EXCEPTION = new SchedulerJobException("恢复定时任务调度失败");
	
	/**
	 * 暂停定时任务失败
	 */
	public static final SchedulerJobException PAUSE_JOB_EXCEPTION = new SchedulerJobException("暂停定时任务失败");
	
	/**
	 * 修改任务调度的触发时间
	 */
	public static final SchedulerJobException RESCHEDULER_JOB_EXCEPTION = new SchedulerJobException("修改任务调度的触发时间失败");
	
	/**
	 * 获取定时任务CronTrigger出现异常
	 */
	public static final SchedulerJobException CRON_TRIGGER_EXCEPTION = new SchedulerJobException("获取定时任务CronTrigger失败");
	
	/**
	 * 检查定时任务是否存在异常
	 */
	public static final SchedulerJobException SCHEDULER_ALREADY_EXCEPTION = new SchedulerJobException("检查定时任务是否存在异常");
	
	public SchedulerJobException() {
		super();
	}

	public SchedulerJobException(String msgFormat, Object... args) {
		super(msgFormat, args);
	}
	
}
